:host {
    background: #fff;
}

ion-header {
    background: transparent !important;
    left: 0;
    top: 0;
    position: absolute;
    z-index: 10;
    display: block;
    width: 100%;
    &.top-header {
        background: #1fb5ff !important;
        transition: 2s;
    }
    .header-md:after {
        height: 0;
    }
    ion-toolbar {
        --background: transparent !important;
        --border-width: 0;
        .button-left {
            padding: 0;
            width: 72px;
            height: 44px;
            position: absolute;
            padding-left: 15px;
            background: transparent;
            text-align: left;
            outline: none;
            z-index: 999;
            top: 0;
            span {
                width: 30px;
                height: 30px;
                img {
                    width: 24px;
                }
            }
            ion-back-button {
                padding: 0;
            }
        }
        .button-search {
            height: 44px;
            color: #fff;
            background: transparent;
            width: 72px;
            padding: 0;
            padding-right: 11px;
            text-align: right;
            outline: none;
            position: absolute;
            top: 0;
            right: 0;
            span {
                width: 30px;
                height: 30px;
                padding: 4px;
            }
        }
    }
}

ion-content {
    margin-top: 0 !important;
    top: 0;
    // min-height: 145% !important;
    // &.active {
    //     height: 145% !important;
    // }
}

.text-center {
    text-align: center
}

.bg-top {
    width: 105%;
    height: 290px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    filter: blur(7px);
    top: -20px;
    left: -10px;
    position: absolute;
}

.top {
    width: 100%;
    position: relative;
    -webkit-transition: all 1s;
    transition: all 1s;
    max-height: 270px;
    min-height: 270px;
    background: rgba(0, 0, 0, 0.2);
    padding-top: 64px;
    .bg-shadow {
        &:nth-of-type(1) {
            position: absolute;
            width: 35px;
            height: 35px;
            left: -5px;
            filter: blur(15px);
            background-size: cover;
        }
        &:nth-of-type(2) {
            position: absolute;
            width: 35px;
            height: 35px;
            right: -5px;
            filter: blur(15px);
            background-size: cover;
        }
    }
    .project-title {
        font-size: 19px;
        height: 44px;
        line-height: 44px;
        color: #fff;
        display: flex;
        text-align: center;
        position: fixed;
        width: 100%;
        top: 20px;
        z-index: 1;
        .title-name {
            flex: 1;
        }
        .title-left {
            width: 44px;
            height: 44px;
            text-align: left;
            padding-left: 15px;
            img {
                width: 24px;
                vertical-align: middle;
            }
        }
        .title-right {
            width: 44px;
            height: 44px;
            margin-right: 2px;
            img {
                width: 24px;
                vertical-align: middle;
            }
        }
    }
    .circle {
        width: 125px;
        height: 125px;
        border-radius: 50%;
        margin-left: 50%;
        transform: translateX(-50%);
        position: relative;
        border: 4px solid rgba(255, 255, 255, .1);
        .head-portrait {
            width: 100%;
            height: 100%;
            border-radius: 50%;
            background-size: cover;
            background-repeat: no-repeat;
            background-position: center;
        }
    }
    .midDiv {
        display: flex;
        color: #fff;
        overflow-x: auto;
        margin: 10px 15px 0 15px;
        .mid-content {
            min-width: 30%;
            text-align: center;
            .mid-title {
                height: 20px;
                justify-content: center;
                display: flex;
                line-height: 20px;
                .inline-data {
                    color: #fff;
                    font-size: 20px;
                    text-shadow: 1px 1px 1px rgba(0, 0, 0, .53);
                }
                .alarm-data {
                    color: #FF1919;
                    margin-right: 1px;
                }
                .total-data {
                    font-size: 17px;
                    text-shadow: 1px 1px 1px rgba(0, 0, 0, .53);
                    &::before {
                        content: '|';
                        padding: 0 3px;
                    }
                }
            }
            .mid-name {
                color: #fff;
                opacity: 0.8;
                font-size: 11px;
                text-shadow: 1px 1px 1px rgba(0, 0, 0, .53);
                text-align: center;
                text-overflow: ellipsis;
                white-space: nowrap;
                margin: -2px auto;
                overflow: hidden;
            }
            i {
                font-size: 11px;
                font-style: normal;
            }
        }
    }
    .inform {
        position: absolute;
        bottom: 5px;
        color: #fff;
        height: 27px;
        line-height: 27px;
        overflow: hidden;
        padding: 0 15px 0 15px;
        width: 100%;
        display: flex;
        align-items: center;
        img {
            display: inline-block;
            width: 14px;
            height: 14px;
            vertical-align: middle;
            margin: -2px 5px 0 0;
        }
    }
}

.bottom-part {
    position: relative;
    min-height: 50px;
    background: #fff;
    .area {
        padding: 0 5px;
        .area-title {
            font-family: 'sf_bold';
            font-size: 17px;
            color: #222;
            margin: 0;
            padding: 15px 0 0 15px;
            font-weight: 550;
        }
        .area-content {
            padding: 0 5px;
            background: #fff;
            position: relative;
            display: flex;
            flex-wrap: wrap;
            &>span {
                width: 40px;
                height: 30px;
                position: absolute;
                background: #fff;
                filter: blur(8px);
                z-index: 1;
                &:nth-of-type(1) {
                    left: 5px;
                }
                &:nth-of-type(2) {
                    right: 5px;
                }
            }
            .area-body {
                width: 95%;
                overflow: hidden;
                min-height: 40px;
                background: #fff;
                position: relative;
                margin: 0 auto;
                border-bottom: 1px solid #ECEFF2;
                .area-region {
                    color: #999999;
                    font-size: 15px;
                    min-width: 100%;
                    height: 100%;
                    position: absolute;
                    margin: 0 auto;
                    &>div {
                        display: flex;
                        position: absolute;
                        width: 100%;
                        left: 0;
                    }
                    .scrollLine {
                        left: 0;
                        transition: all 1s ease 0s;
                        height: 2px;
                        bottom: 0;
                        position: absolute;
                        padding: 0;
                        display: flex;
                        hr {
                            margin: 0;
                            color: #1FB5FF;
                            left: 5%;
                            height: 100%;
                            // flex: 0 0 25%;
                            position: absolute;
                            width: 15%;
                            background-color: #1fb5ff;
                        }
                    }
                    .region-module {
                        text-align: center;
                        // padding: 10px;
                        width: 100%;
                        flex: 0 0 25%;
                        padding: 7px 0;
                        white-space: nowrap;
                        span {
                            &.active {
                                color: #1FB5FF;
                            }
                        }
                    }
                }
            }
            .region-active {
                position: fixed;
                width: 90%;
                background: #fff;
                left: 50%;
                top: 64px;
                transform: translateX(-50%);
            }
            .each-module {
                flex: 0 0 25%;
                max-width: 25%;
                background: #fff;
                height: 72px;
                text-align: center;
                img {
                    width: 30px;
                    height: 30px;
                    margin-top: 11px;
                    border-radius: 50%;
                }
                p {
                    color: #222;
                    margin-top: -5px;
                    font-size: 13px;
                    overflow: hidden;
                    padding: 0px 7px;
                    height: 20px;
                }
            }
            .area-project {
                width: 100%;
                display: flex;
                flex-wrap: wrap;
                padding-top: 10px;
                margin-top: 0;
                &.active {
                    margin-top: 40px;
                }
                .project-module {
                    flex: 0 0 25%;
                    max-width: 25%;
                    background: #fff;
                    // height: 72px;
                    text-align: center;
                    img {
                        width: 37px;
                        height: 37px;
                        border-radius: 50%;
                    }
                    p {
                        color: #222;
                        margin: 0px;
                        font-size: 13px;
                        padding: 0px 7px;
                        line-height: 17px;
                    }
                }
            }
        }
    }
}

.header-md:after {
    height: 0;
}